package com.order.service;

import com.github.pagehelper.PageInfo;
import com.order.bean.Order;
import com.order.bean.Tables;

import java.util.List;

public interface TablesService {

    boolean addTable(Tables tables);

    boolean deleteTableById(Integer id);

    boolean deleteBatchTables(Integer[] ids);

    boolean updateTable(Tables tables);

    Tables selectTableById(Integer id);

    List<Tables> selectAllTables(String name);

    PageInfo<Tables> selectTablesByPage(String name, Integer pageNum, Integer pageSize);

    Order addOrder(Tables tables);

    Tables selectTableByUserId(Integer userId);

    // 根据餐桌ID取消订单
    void  removeOreder(Tables tables);
}
